<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class HotGoods extends Model
{
    protected $table='hot_goods';
    protected $primaryKey='hot_goods_id';
    public $timestamps=false;
    protected $fillable=[
        'goods_id','sort','type'
    ];

    public function goods()
    {
        return $this->hasOne(Goods::class,'goods_id','goods_id');
    }
}
